//
//  CMTCheckBoxView.h
//  ExcellentHome
//
//  Created by 陈区 on 13-12-4.
//  Copyright (c) 2013年 陈区. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CMTCheckBoxView;
@protocol CMTCheckBoxViewDelegate <NSObject>
@optional
//点击一个多选框后回调
- (void)checkBoxDidClicked:(CMTCheckBoxView *)checkBox;

@end

@interface CMTCheckBoxView : UIView
{
    BOOL   checked;//是否是选中状态
    UIImage *m_imgNormal;//正常状态图片
    UIImage *m_imgChecked;//选中的图片
    UIButton *btnCheck;
}

@property(nonatomic,assign)BOOL   checked;//是否是选中状态
@property(nonatomic,strong)id     myValue;//自定义关联的值
@property(nonatomic,strong)id     myValue2;//自定义关联的值
@property(nonatomic,assign)id     checkBoxDelegate;

- (id)initWithFrame:(CGRect) aFrame normalImage:(UIImage *)normalImage checkedImage:(UIImage *)checkedImage;

//点击多选框
- (void)clickedCheckBoxForChecked:(BOOL)isChecked;

@end
